//
//  LZRestaurantAuthPresenter.h
//  laziz_Merchant
//
//  Created by xbnzd on 17/3/7.
//  Copyright © 2017年 XBN. All rights reserved.
//

#import "LZBasePresenter.h"
@class LZRestaurantAuthModel;

@interface LZRestaurantAuthPresenter : LZBasePresenter
@property (nonatomic, strong) NSMutableArray *restaurantCuisineArr; //商家认证菜系原始数据
@property (nonatomic, strong) NSMutableArray *restaurantAreaArr;   //商家认证热门商区原始数据


#pragma mark -
#pragma mark 认证商家

/**
 商家认证

 @param authModel <#authModel description#>
 @param successBlokc <#successBlokc description#>
 @param failureBlock <#failureBlock description#>
 */
- (void)authRestaurantWithModel:(LZRestaurantAuthModel *)authModel Success:(PresenterCommonSuccess)successBlokc Failure:(PresenterCommonFail)failureBlock;

#pragma mark -
#pragma mark 商家认证被拒,修改后再次认证
- (void)authRestaurantAgainWithModel:(LZRestaurantAuthModel *)authModel Success:(PresenterCommonSuccess)successBlokc Failure:(PresenterCommonFail)failureBlock;

#pragma mark -
#pragma mark 获取菜系 与 菜系展示模型转关相关
/**
 获取菜系

 @param successBlock <#successBlock description#>
 @param failureBlock <#failureBlock description#>
 */
- (void)getRestaurantCuisineSuccess:(void(^)(NSArray *cuisineArr))successBlock Failure:(PresenterCommonFail)failureBlock;


/**
 基于已经选择的菜系数组获取用于展示到弹出框选择器的菜系数组

 @param cuisineSelectedArr 已经选择的菜系数组
 @return 用于弹出框选择器展示的数组
 */
- (NSArray *)getRestaurantCuisineArrForPopSelectViewBaseSelectedCuisineArr:(NSArray *)cuisineSelectedArr;



/**
 填充model用户页面展示.因为拒绝后,返回的数据是菜系id,需要根据id找到相关的菜系,然后填充到model中的cookingstylename字段

 @param authModel 认证被拒绝后返回的数据
 @return 返回用于页面展示处理逻辑的已经选择的菜系数字
 */
- (NSArray *)fillCookingStyleAndCallBackSelectedCookingStyleArrWhenAuthRegetcedWithAuthModel:(LZRestaurantAuthModel *)authModel;


#pragma mark -
#pragma mark 获取热门商区
/**
 获取热门商区

 @param successBlock <#successBlock description#>
 @param failureBlock <#failureBlock description#>
 */
- (void)getHotAreaSuccess:(void(^)(NSArray *areaArr))successBlock Failure:(PresenterCommonFail)failureBlock;


/**
 基于已经选择的商区的数组获取用于展示到弹出框选择器的商区数组

 @param areaSelectedArr 已经选择的商区数组
 @return 用于展示的商区数组
 */
- (NSArray *)getRestaurantAreaArrForPopSelectViewBaseSelectedAreaArr:(NSArray *)areaSelectedArr;



@end
